
<?php


include './Class/Animal.class.php';

include './Class/Dog.class.php';

$obj = new Dog();

echo $obj->name;

//子类可继承父类的方法
$obj->live();





























